import { ComponentV2rayProxyMode } from '@/models/components/v2ray/v2ray_info.ts'

export declare type ComponentV2rayBasicSetting = {
    proxy_mode: ComponentV2rayProxyMode
    http_port: number
    socket_port: number
    udp: boolean
    local_area_network: boolean
    enable_balancer: boolean
}

export function new_component_v2ray_basic_setting(): ComponentV2rayBasicSetting {
    return {
        proxy_mode: ComponentV2rayProxyMode.Router,
        http_port: 1089,
        socket_port: 1088,
        udp: false,
        local_area_network: false,
        enable_balancer: false,
    }
}
